package com.rz.htk.print.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rz.htk.print.entity.PrintTemplate;
import com.rz.htk.print.mapper.PrintTemplateMapper;
import com.rz.htk.print.service.IPrintTemplateService;
import org.springframework.stereotype.Service;

@Service
public class PrintTemplateServiceImpl extends ServiceImpl<PrintTemplateMapper, PrintTemplate> implements IPrintTemplateService {

    @Override
    public PrintTemplate getByCode(Integer tempCpde) {
        QueryWrapper<PrintTemplate> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id",tempCpde);
        return getOne(queryWrapper);
    }
}
